package Exception;

public class Demo {
    public static void main(String[] args) {
        Person p = new Person();
        try {
            p.setAge(600);
        }catch (Exception e){
            e.printStackTrace();
            p.setAge(25);
        }

    }
}
